import request from '@/utils/request'

export function sendmessage(param) {
  return request({
    url: '/Member/Pub/sendVerify',
    method: 'post',
    data: param
  })
}//发送验证码

export function UsreRegister(param) {
  // console.log(JSON.stringify(param))
  return request({
    url: '/Member/Pub/register',
    method: 'post',
    data:param
  })
}//注册

export function login(account, password) {
  return request({
    url: '/Member/Pub/login',
    method: 'post',
    data: {
      account,
      password
    }
  })
}//登陆

export function findPwd(param) {
  return request({
    url: '/Member/Pub/findPwd',
    method: 'post',
    data:param
  })
}//找回密码

export function getInfo(token) {
  return request({
    url: '/Member/Member/detail',
    method: 'get',
    params: { token }
  })
}//获取个人信息

export function updPwd(param) {
  return request({
    url: '/Member/Member/mypwd',
    method: 'post',
    data:param 
  })
}//修改登陆密码

export function logout() {
  return request({
    url: '/user/logout',
    method: 'post'
  })
}//退出登陆

